|
boost12 2.2.0
|
API for configuring and manipulating Boost 12 Click driver. More...
Topics | |
| Boost 12 PWM Settings | |
| Settings for configuration of Boost 12 Click driver. | |
| Boost 12 MikroBUS Map | |
| MikroBUS pin mapping of Boost 12 Click driver. | |
Functions | |
| void | boost12_cfg_setup (boost12_cfg_t *cfg) |
| Boost 12 configuration object setup function. | |
| err_t | boost12_init (boost12_t *ctx, boost12_cfg_t *cfg) |
| Boost 12 initialization function. | |
| err_t | boost12_default_cfg (boost12_t *ctx) |
| Boost 12 default configuration function. | |
| err_t | boost12_set_duty_cycle (boost12_t *ctx, float duty_cycle) |
| Boost 12 sets PWM duty cycle. | |
| err_t | boost12_pwm_stop (boost12_t *ctx) |
| Boost 12 stop PWM module. | |
| err_t | boost12_pwm_start (boost12_t *ctx) |
| Boost 12 start PWM module. | |
API for configuring and manipulating Boost 12 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
| void boost12_cfg_setup | ( | boost12_cfg_t * | cfg | ) |
Boost 12 configuration object setup function.
This function initializes Click configuration structure to initial values.
| [out] | cfg | : Click configuration structure. See boost12_cfg_t object definition for detailed explanation. |
| err_t boost12_default_cfg | ( | boost12_t * | ctx | ) |
Boost 12 default configuration function.
This function executes a default configuration of Boost 12 Click board.
| [in] | ctx | : Click context object. See boost12_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation. | err_t boost12_init | ( | boost12_t * | ctx, |
| boost12_cfg_t * | cfg ) |
Boost 12 initialization function.
This function initializes all necessary pins and peripherals used for this Click board.
| [out] | ctx | : Click context object. See boost12_t object definition for detailed explanation. |
| [in] | cfg | : Click configuration structure. See boost12_cfg_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation. | err_t boost12_pwm_start | ( | boost12_t * | ctx | ) |
Boost 12 start PWM module.
This function starts the PWM module output.
| [in] | ctx | : Click context object. See boost12_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation. | err_t boost12_pwm_stop | ( | boost12_t * | ctx | ) |
Boost 12 stop PWM module.
This function stops the PWM module output.
| [in] | ctx | : Click context object. See boost12_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation. | err_t boost12_set_duty_cycle | ( | boost12_t * | ctx, |
| float | duty_cycle ) |
Boost 12 sets PWM duty cycle.
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ).
| [in] | ctx | : Click context object. See boost12_t object definition for detailed explanation. |
| [in] | duty_cycle | : PWM duty cycle. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation.